home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 2070
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 3900
- LinkTopic = "Form1"
- ScaleHeight = 2070
- ScaleWidth = 3900
- StartUpPosition = 3 'Windows Default
- Begin VB.Data Data1
- Caption = "Data1"
- Connect = "Access"
- DatabaseName = "c:\VBDB\Working\Biblio.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 345
- Left = 840
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "SELECT * FROM Titles"
- Top = 1440
- Width = 2220
- End
- Begin VB.Label Label2
- Caption = "Label2"
- Height = 495
- Left = 240
- TabIndex = 1
- Top = 600
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Label1"
- DataField = "Title"
- DataSource = "Data1"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 3375
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Activate()
- Data1.RecordSource = "SELECT * FROM Titles ORDER BY Title"
- Data1.Refresh
- Data1.Recordset.MoveLast
- Data1.Recordset.MoveFirst
- Label2.Caption = Data1.Recordset.RecordCount
- End Sub
-